<#escape x as (x)!"">
<form action="list" id="pageListForm" method="post" class="form-inline">
	<div class="search">
		<div class="form-group">
			<input type="text" name="userName" value="${param.userName}" class="form-control" placeholder="请输入姓名" />
		</div>
		<div class="form-group">
			<a href="javascript:;" class="btn btn-search " id="btn-search">查询</a>
		</div>
	</div>
	
	<div class="main-container" style="overflow: auto; height: 462px;">
		<table class="table table-bordered table-hover">
			<thead class="thead thead-more">
				<tr>
					<th>姓名</th>
					<th class="ui-td-oper">操作</th>
				</tr>
			</thead>
			<tbody class="tbody mod-tbody">
				<#if list?? && list?size gt 0>
				<#list list as item>
				<tr>
					<td>
						${item.userName!''}
					</td>
					<td class="ope-color">
						<a href="javascript:;" class="ui-ico-tips ui-ico-edit" onclick="selectUser(this);" data-id="${item.id}" data-name="${item.userName}">选择</a> 
					</td>
				</tr>
				</#list>
				<#else>
				<tr>
					<td colspan="11"><p class="no-data">没有相关数据</p></td>
				</tr>
				</#if>
			</tbody>
		</table>
	</div>
</form>
<script type="text/javascript">
	var selectUser = function(o) {
		var data = {};
		data.userId = $(o).attr("data-id");
		data.userName = $(o).attr("data-name");
		
		selectCallBack(data);
	}
</script>
</#escape>
